//
//  JJBigEmojiListCell.swift
//  swiftProject
//
//  Created by yangjian on 2021/12/20.
//

import UIKit

class JJBigEmojiListCell: UICollectionViewCell {
    
    static let imageViewSize = CGSize(width: 80, height: 80)
    
    var imageView = UIImageView.init(frame: CGRect.zero)
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.config()
    }
    required init?(coder: NSCoder) {
        super.init(coder: coder)
    }
    
    func config(){
        self.contentView.addSubview(imageView)
        imageView.snp.makeConstraints { make in
            make.center.equalTo(self.contentView)
            make.size.equalTo(JJBigEmojiListCell.imageViewSize)
        }
    }
    
    func bindModel(model:JJBigEmojiModel){
        self.imageView.image = model.coverImage
    }
    
}
